import request from '@/utils/request';
import { AxiosPromise } from 'axios';

/**
 * 查询币种列表
 * @param query
 * @returns {*}
 */

export const listEvents = (query?: any): AxiosPromise<any[]> => {
  return request({
    url: '/business/events/list',
    method: 'get',
    params: query
  });
};


export const publishEvent = (id?: string): AxiosPromise<any[]> => {
  return request({
    url: `/business/events/publish/${id}`,
    method: 'get',
  });
};

